package cn.edu.hqu.coursesys.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;


import cn.edu.hqu.coursesys.domain.PersonalInfo;

@Controller
@RequestMapping(value="/course")
public class CourseController {
	/*@GetMapping
	public String showInfoForm(Model model) {
		model.addAttribute("pInfo",new PersonalInfo());
		return "course";
	}*/
	@PostMapping
	public String showCourseList(@ModelAttribute("pInfo") PersonalInfo Info,
			Model model) {
		return "show";
	}
}
